home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / tools / czesc_1 / executive_v1.00 / sysinfo.lzx / examples / uptime / Makefile < prev    next >
Makefile  |  1990-09-29  |  856b  |  42 lines

  1. #
  2. # MakeFile for sysinfo.library/uptime
  3. #
  4. # This file is public domain.
  5. #
  6. # Author: Petri Nordlund <petrin@mits.mdata.fi>
  7. #
  8. # $Id: MF.compile 1.1 1995/05/28 00:03:06 petrin Exp petrin $
  9. #
  10.  
  11. # To compile uptime with multiuser.library support, you must have
  12. # installed the Multiuser package, specifically the include-files.
  13. # You'll also need GCC:lib/libmultiuser.a which is a small stub-library,
  14. # see GCC:geninline/ for information how to generate it.
  15.  
  16. # Uncomment to include multiuser-support
  17. #MULTIUSER = -DUSE_MULTIUSER -lmultiuser
  18.  
  19. CFLAGS = $(BUILD_GCC_OPT)
  20.  
  21.  
  22. SHELL = USR:BIN/sh
  23.  
  24. # Source files
  25. SRCS   = uptime.c
  26.  
  27. # Object files
  28. OBJS   = $(SRCS:.c=.o)
  29.  
  30. PROG   = uptime
  31.  
  32. all : $(PROG)
  33.  
  34. $(PROG) : uptime.o
  35.     gcc $(CFLAGS) -o $(PROG) $^ -lamiga -lauto -lsysinfo $(MULTIUSER)
  36.  
  37. uptime.o : uptime.c
  38.     gcc $(CFLAGS) -c uptime.c
  39.  
  40. clean:
  41.     -delete uptime uptime.o
  42.